package com.fanketly.funacg2.data.repo

import com.fanketly.funacg2.data.model.CollectModel
import com.fanketly.funacg2.data.network.RetrofitNetwork
import javax.inject.Inject
import javax.inject.Singleton

@Singleton
class FavouriteRepo @Inject constructor(
    private val retrofitNetwork: RetrofitNetwork,
) {
    suspend fun getAll(page: Int, pageSize: Int) = retrofitNetwork.getCollect(page, pageSize)

    suspend fun insert(collect: CollectModel) = retrofitNetwork.addCollect(collect)

    suspend fun delete(id: Int) = retrofitNetwork.deleteCollect(id)

    suspend fun isFavourite(asmrId: Int) = retrofitNetwork.isFavourite(asmrId)


}